
<%@page import="net.com.pc.dss.learning.trace.index.TraceIndexManager"%>
<%@ page language="java" import="java.util.*" %>
<%@ page import="java.text.SimpleDateFormat" %>

<%
	String beginOn = request.getParameter("beginOn");
	String endOn = request.getParameter("endOn");
	SimpleDateFormat dayDateFormat = new SimpleDateFormat("yyyyMMdd");
	String defaultTime = dayDateFormat.format(new Date());
	
	if(beginOn != null && endOn != null) {
		try {
			TraceIndexManager tiManager = TraceIndexManager.getInstance();
			tiManager.indexTrace(beginOn,endOn);
		}catch(Exception e){
			e.printStackTrace();
		}
	}	
%>

<html>
	<body>
		<form action="">
			<p>yyyyMMdd</p>
			BeginON:<input type="text" name="beginOn" value=<%=defaultTime %>>
			EndON:<input type="text" name="endOn"value=<%=defaultTime %>>
			<input type="submit" value="submit" name="btlogin"/>
		</form>
	</body>
</html>